import { createStore, combineReducers } from 'redux';
import { shopReducer } from './reducers/shop.reducer';
import { cartReducer } from './reducers/cart.reducer';

const rootReducer = {
    shopReducer,
    cartReducer
}

export const store = createStore(
    combineReducers(rootReducer),
    (window as any).__REDUX_DEVTOOLS_EXTENSION__ && (window as any).__REDUX_DEVTOOLS_EXTENSION__()
);